home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / EmailViewer / FULL / EmailViewer.jar / l.class (.txt) < prev    next >
Encoding:
Java Class File  |  2002-12-23  |  5.0 KB  |  153 lines

  1. import javax.microedition.lcdui.Alert;
  2. import javax.microedition.lcdui.AlertType;
  3. import javax.microedition.lcdui.Command;
  4. import javax.microedition.lcdui.CommandListener;
  5. import javax.microedition.lcdui.Displayable;
  6. import javax.microedition.lcdui.Form;
  7. import javax.microedition.lcdui.Image;
  8. import javax.microedition.lcdui.List;
  9. import javax.microedition.lcdui.TextBox;
  10.  
  11. // $FF: renamed from: l
  12. public class class_0 implements CommandListener {
  13.    // $FF: renamed from: g ac
  14.    private ac field_0;
  15.    // $FF: renamed from: f ac
  16.    private ac field_1;
  17.    // $FF: renamed from: l ac
  18.    private ac field_2;
  19.    // $FF: renamed from: j ac
  20.    private ac field_3;
  21.    // $FF: renamed from: h javax.microedition.lcdui.TextBox
  22.    private TextBox field_4;
  23.    // $FF: renamed from: c javax.microedition.lcdui.TextBox
  24.    private TextBox field_5;
  25.    // $FF: renamed from: b javax.microedition.lcdui.Form
  26.    private Form field_6;
  27.    // $FF: renamed from: d a
  28.    private a field_7;
  29.    // $FF: renamed from: e javax.microedition.lcdui.Displayable
  30.    private Displayable field_8;
  31.    // $FF: renamed from: i a
  32.    private a field_9;
  33.    // $FF: renamed from: k javax.microedition.lcdui.List
  34.    private List field_10;
  35.    // $FF: renamed from: a boolean
  36.    private boolean field_11;
  37.  
  38.    class_0(List var1, a var2, Displayable var3) {
  39.       this.field_10 = var1;
  40.       this.field_8 = var3;
  41.       if (var2 == null) {
  42.          var2 = new a();
  43.       }
  44.  
  45.       this.field_7 = var2;
  46.       this.field_4 = new TextBox("Subject", this.field_7.c(), 1024, 0);
  47.       this.field_4.addCommand(EV.p);
  48.       this.field_4.addCommand(EV.f);
  49.       this.field_4.setCommandListener(this);
  50.       this.field_5 = new TextBox("Message Text", this.field_7.g(), 1024, 0);
  51.       this.field_5.setCommandListener(this);
  52.       this.field_5.addCommand(EV.A);
  53.       this.field_5.addCommand(EV.f);
  54.       this.field_2 = this.field_3 = null;
  55.       this.field_11 = false;
  56.       this.field_0 = new ac(true, false, "From", this, var3, (u[])null);
  57.       if (this.field_0.n.size() == 1) {
  58.          this.field_1 = new ac(false, false, "To", this, var3, this.field_7.j());
  59.       }
  60.  
  61.    }
  62.  
  63.    public void commandAction(Command var1, Displayable var2) {
  64.       if (var1 == EV.E) {
  65.          EV.c.setCurrent(this.field_10);
  66.       } else if (var1 == EV.u) {
  67.          this.field_6 = new Form("Result");
  68.          this.field_6.setCommandListener(this);
  69.          this.field_6.addCommand(EV.E);
  70.          this.field_6.addCommand(EV.f);
  71.          String var3 = EV.b.o();
  72.          if (var3 == null) {
  73.             var3 = "This email message may not have been delivered due to an unexpected error.";
  74.          } else if (var3.equals("confirmed")) {
  75.             var3 = "Before this message can be delivered, we must confirm that your email address is valid. We have sent a confirmation message to " + this.field_9.i().b() + ". Please see this confirmation message for details.";
  76.          } else if (var3.equals("sent")) {
  77.             String var4 = this.field_9.c();
  78.             if (var4 == null) {
  79.                var4 = "";
  80.             }
  81.  
  82.             var3 = "Your message, '" + var4 + "', has been sent.";
  83.          } else {
  84.             var3 = "Unknown status of sent message.";
  85.          }
  86.  
  87.          this.field_6.append(var3);
  88.          EV.c.setCurrent(this.field_6);
  89.       } else if (var1 == EV.n) {
  90.          if (var2 == this.field_0.n) {
  91.             this.field_0 = new ac(true, false, "From", this, this.field_10, (u[])null);
  92.             if (this.field_0.n.size() == 1) {
  93.                this.field_1 = new ac(false, false, "To", this, this.field_8, this.field_7.j());
  94.             }
  95.          } else if (var2 == this.field_1.n) {
  96.             Object var6;
  97.             if (this.field_0.n.size() == 1) {
  98.                var6 = this.field_8;
  99.             } else {
  100.                var6 = this.field_0.n;
  101.             }
  102.  
  103.             this.field_1 = new ac(false, false, "To", this, (Displayable)var6, this.field_1.f());
  104.          } else if (this.field_11) {
  105.             this.field_2 = new ac(false, true, "Cc", this, this.field_1.n, this.field_2 == null ? null : this.field_2.f());
  106.             EV.c.setCurrent(this.field_2.n);
  107.          } else {
  108.             this.field_3 = new ac(false, true, "Bcc", this, this.field_1.n, this.field_3 == null ? null : this.field_3.f());
  109.             EV.c.setCurrent(this.field_3.n);
  110.          }
  111.       } else if (var1 == EV.f) {
  112.          if (var2 == this.field_4) {
  113.             EV.c.setCurrent(this.field_1.n);
  114.          } else if (var2 == this.field_5) {
  115.             EV.c.setCurrent(this.field_4);
  116.          } else if (var2 == this.field_6) {
  117.             EV.c.setCurrent(this.field_5);
  118.          } else {
  119.             EV.c.setCurrent(this.field_8);
  120.          }
  121.       } else if (var1 == this.field_0.l) {
  122.          this.field_1 = new ac(false, false, "To", this, this.field_0.n, this.field_7.j());
  123.       } else if (var1 == this.field_1.l) {
  124.          if (this.field_1.f() == null) {
  125.             EV.c.setCurrent(new Alert("Error", "At least one 'To:' recipient required", (Image)null, AlertType.ERROR));
  126.          } else {
  127.             EV.c.setCurrent(this.field_4);
  128.          }
  129.       } else if (var1 == EV.v) {
  130.          this.field_11 = true;
  131.          this.field_2 = new ac(false, true, "Cc", this, this.field_1.n, this.field_2 == null ? this.field_7.b() : this.field_2.f());
  132.       } else if (var1 == EV.z) {
  133.          this.field_11 = false;
  134.          this.field_3 = new ac(false, true, "Bcc", this, this.field_1.n, this.field_3 == null ? null : this.field_3.f());
  135.       } else if (var1 == EV.p) {
  136.          EV.c.setCurrent(this.field_5);
  137.       } else if (var1 == EV.A) {
  138.          this.field_9 = new a();
  139.          this.field_9.a(this.field_4.getString());
  140.          this.field_9.c(this.field_1.f());
  141.          this.field_9.b(this.field_2 == null ? this.field_7.b() : this.field_2.f());
  142.          this.field_9.a(this.field_3 == null ? null : this.field_3.f());
  143.          this.field_0.c();
  144.          this.field_9.a(new u(this.field_0.k, this.field_0.c));
  145.          this.field_9.b(this.field_5.getString());
  146.          EV.b.W = this;
  147.          EV.c.setCurrent(EV.b);
  148.          EV.b.a(this.field_9);
  149.       }
  150.  
  151.    }
  152. }
  153.